<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="pragma" content="no-cache"> 
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"> 
<meta http-equiv="expires" content="0"> 
<title>个人信息</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
<link rel="stylesheet" href="assets/css/rz.css">

</head>
<body>
	<div class="page-group">
		<div class="page page-current" id="index">
			<header class="bar bar-nav">
				<a href="customer/me" id="back" class="button button-link button-nav pull-left back" external>
					<span class="icon icon-left"></span> 返回
				</a>
				<h1 class='title'>更新个人信息</h1>
			</header>
			
			<!-- 页面正文 -->
			<div class="content">
				<form action="customer/updatePersonalInfo" id="form" method="post">
				<div class="list-block">
					<ul>
						<!-- Text inputs -->
						<li>
							<div class="item-content">
								<div class="item-media">
									<i class="icon icon-form-email"></i>
								</div>
								<div class="item-inner">
									<div class="item-title label">真实姓名</div>
									<div class="item-input">
										<input id="name" name="name" type="text" value="${customer.name}" placeholder="请输入真实姓名" />
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>
				<div class="list-block">
					<ul>
						<!-- Text inputs -->
						<li>
							<div class="item-content">
								<div class="item-media">
									<i class="icon icon-form-email"></i>
								</div>
								<div class="item-inner">
									<div class="item-title label">性别</div>
									<div class="item-input">
										<!-- <input id="value" type="email" placeholder="请选择性别" value="41158745@qq.com" /> -->
										<div class="item-input">
											<select id="gender" name="gender">
												<c:if test="${customer.gender==0}">
												<option value="0" selected>男</option>
												<option value="1">女</option>
												</c:if>
												<c:if test="${customer.gender==1}">
												<option value="0" >男</option>
												<option value="1" selected>女</option>
												</c:if>
												<c:if test="${customer.gender!=1&&customer.gender!=0}">
												<option disabled selected style='display:none;'>请选择性别</option>
												<option value="0" >男</option>
												<option value="1" selected>女</option>
												</c:if>
											</select>
										</div>
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>
				<div class="list-block">
					<ul>
						<!-- Text inputs -->
						<li>
							<div class="item-content">
								<div class="item-media">
									<i class="icon icon-form-email"></i>
								</div>
								<div class="item-inner">
									<div class="item-title label">电子邮箱</div>
									<div class="item-input">
										<input id="email" name="email" type="email" value="${customer.email}" placeholder="请输入电子邮箱" />
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>
				<div class="list-block">
					<ul>
						<!-- Text inputs -->
						<li>
							<div class="item-content">
								<div class="item-media">
									<i class="icon icon-form-email"></i>
								</div>
								<div class="item-inner">
									<div class="item-title label">出生日期</div>
									<div class="item-input">
										<div class="item-input">
													<input type="date" name="birthday" value="${customer.birthday}"
														value="2000-01-01">
												</div>
									</div>
								</div>
							</div>
						</li>
					</ul>
				</div>
				<div class="content-block">
					<div class="row">
						<div class="col-100">
							<input type="submit" name="submit" id="submit" class="button button-big button-fill button-success" value="保&nbsp;&nbsp;&nbsp;&nbsp;存" />
							<!-- <a id="submit" href="customer/me" class="button button-big button-fill button-success">保&nbsp;&nbsp;&nbsp;&nbsp;存</a> -->
						</div>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
<!-- 	<script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
	<script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script> -->
	<script src="assets/js/jquery.min.js"></script>
	<script src="assets/js/jquery.validate.js"></script>
	<script src="assets/js/messages_zh.js"></script>
	<script src="assets/js/validate_expand.js"></script>
	<script src="assets/js/jquery.base64.js"></script>
	<script src="assets/js/customer/updatePersonalInfo.js"></script>
	<script src="assets/js/datepicker.js"></script>
	<script src="assets/js/distpicker.data.js"></script>
	<script src="assets/js/distpicker.js"></script>
</body>
</html>
